package com.thz.websqlit.file.repository;

import com.thz.websqlit.file.entity.SearchFileInfoEntity;
import com.thz.websqlit.mybatis.entity.PtFileEntity;
import com.thz.websqlit.mybatis.flexigrid.PagingBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FileInfoDao {
    PtFileEntity queryFileInfoById(@Param("fileUuid") String fileUuid);

    PtFileEntity queryFileInfoByPath(@Param("filePath") String filePath);

    void insertIntoFileInfo(@Param("entity") PtFileEntity ptFileEntity);

    void updateIntoFileInfo(@Param("entity") PtFileEntity ptFileEntity);

    List<PtFileEntity> queryFileInfoListByPage(@Param("entity")SearchFileInfoEntity entity, @Param("paging")PagingBean paging);

    Integer queryFileInfoTotal(@Param("entity") SearchFileInfoEntity entity);

    List<PtFileEntity> queryFileList();
}
